<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>课件查看</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link href="#{facesContext.externalContext.requestContextPath}/css/public.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">

<h:form>
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display:">
		<a4j:outputPanel  id="msgPanel">
		<center>
			<h:outputText styleClass="cff" value="#{CoursewareBB.msg}" />
		</center>
	</a4j:outputPanel>
	</div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td>
			<span class="cff">*</span>OFFICE<h:selectOneMenu class="style_input" value="#{CoursewareBB.courseware.office_code}" disabled="true">
	 			<f:selectItems value="#{otherParamBB.selectItems_officeInfId}" />
			</h:selectOneMenu></td>
			<td><span class="cff">*</span>技能组<h:selectOneMenu class="style_input" value="#{CoursewareBB.courseware.tp_userkind}" disabled="true">
				<f:selectItems value="#{paramBB.selectItems_param}" />
			</h:selectOneMenu></td>
		</tr>
		<tr>
			<td class="yellow"><span class="cff">*</span>课件标题  <h:inputText
				 class="style_input"  value="#{CoursewareBB.courseware.tp_cwtitle}"  disabled="true"/></td>
			<td class="yellow"><span class="cff">*</span>课件状态 <h:selectOneMenu class="style_input" value="#{CoursewareBB.courseware.tp_state}" disabled="true">
	 			<f:selectItems  value="#{paramBB.selectItem['tp_courseware_state']}"  />
			</h:selectOneMenu></td>
		</tr>
		<tr>
			<td colspan="2"><span class="cff">*</span>内容简介 <label>
			<h:inputTextarea value="#{CoursewareBB.courseware.tp_cwsyno}" class="style_textarea"  readonly="true" style=" width : 1000px;height : 100px;"/> </label></td>
		</tr>
		<tr>
			<td colspan="2"><span class="cff">*</span>内容描述 <label> <h:inputTextarea
				value="#{CoursewareBB.courseware.tp_cwcont}" class="style_textarea" readonly="true" style="width : 1000px; height : 300px;"/> </label></td>
		</tr>
		<tr>
		
		 <td align="left" height="25" style="border-bottom:1px solid #000000">
					    <div style="height:25px;margin:0px,10px;">
					    	<h:inputHidden value="#{CoursewareBB.courseware.tp_affixaddress}" />
					    	<h:inputHidden value="#{CoursewareBB.courseware.tp_filename}" />
					    	<h:outputText value="附件：" />
					    	<h:outputText value="没有附件！" rendered="#{empty(CoursewareBB.courseware.tp_filename)}"/>
					    	<h:commandLink value="#{CoursewareBB.courseware.tp_filename}" actionListener="#{CoursewareBB.downloadAction}" target="_blank"/>
					    </div>
				    </td>
		</tr>
	</table>
	<div class="listbut">
		<h:commandButton styleClass="buttonbg" value="返回" action="#{CoursewareBB.toBack}" immediate="true"/></div>
	</div>
	</div>
</h:form>
</body>
</html>

